import os

from .baseclass import *
from .host import *
from .nethash import *
from .xdbSearcher import *

DB_PATH = os.path.join(os.path.abspath(os.getcwd()), "data/ip2region.xdb")
searcher = XdbSearcher(
    dbfile=DB_PATH, vectorIndex=XdbSearcher.loadVectorIndexFromFile(DB_PATH))
